package com.vegetable.modules.entity.allocation.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.vegetable.modules.entity.allocation.AllocationCollectionDetail;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 包含销售信息的分配回款明细
 * </p>
 *
 * @author Qoder
 * @since 2025-10-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="AllocationCollectionDetailWithSalesInfo对象", description="包含销售信息的分配回款明细")
public class AllocationCollectionDetailWithSalesInfo extends AllocationCollectionDetail {

    @ApiModelProperty(value = "销售订单金额")
    private BigDecimal salesOrderAmount;

    @ApiModelProperty(value = "订单时间")
    private Date orderTime;

    @ApiModelProperty(value = "已回款金额")
    private BigDecimal receivedMoney;

    @ApiModelProperty(value = "交易流水打款金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("交易时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tradingTime;

    @ApiModelProperty(value = "回款单编号")
    private String docNo;

}